<?php if($this->popup): ?>
<!-- ?xml version="1.0" encoding="utf-8"? -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<title><?php echo $this->title ?></title>
</head>
<body style="margin:0;padding:0;">
<?php endif; ?>

	<div id="<?php echo $this->rotatorId ?>"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this rotator.</div>
	<script type="text/javascript" src="<?php echo $this->relPathToResFolder ?>swfobject.js"></script>
	<script type="text/javascript">
		var so = new SWFObject("<?php echo $this->relPathToResFolder ?>imagerotator.swf","rotator","<?php echo $this->width ?>","<?php echo $this->height ?>","7");
		so.addVariable("file","<?php echo $this->playlistUrl ?>");
		so.addVariable("width","<?php echo $this->width ?>");
		so.addVariable("height","<?php echo $this->height ?>");
		so.addVariable('transition','fade');
		so.write("<?php echo $this->rotatorId ?>");
	</script>

<?php if($this->popup): ?>
</body>
</html>
<?php endif; ?>
